def sum(num1, num2=0):
  print ('sum = ', num1 + num2)

sum(1,2)
sum(30)

# sum =  3
# sum =  30